/*
  留言板页面
*/
.k-message {
  min-height: 100vh;
  .tip-message {
    padding: 30px 10px 10px;
    border-radius: 5px;
    margin: 10px;
    border-left: 5px solid var(--success);
    background-color: var(--opacity-cyan-1);
    line-height: 1.5;
    position: relative;
    font-size: 14px;
    .icon-close {
      position: absolute;
      right: 10px;
      font-size: 14px;
      top: 5px;
      cursor: pointer;
    }
  }
  .add-message {
    margin: 20px 10px;
    text-align: right;
  }
  .message-form {
    .message-from-item {
      margin: 1rem 0;
      padding: 0 2px; /* for input shadow */
      input {
        height: 40px;
      }
      textarea {
        min-height: 20vh;
        max-height: 20vh;
        overflow: auto;
        resize: none;
      }
    }
  }

  .message-list {
    width: 100%;
    .message-item {
      background-color: var(--opacity-cyan-3);
      &:nth-child(n) {
        border-left: 5px solid var(--warning);
      }
      &:nth-child(2n) {
        border-left: 5px solid var(--error);
      }
      &:nth-child(3n) {
        border-left: 5px solid var(--primary);
      }
      &:nth-child(5n) {
        border-left: 5px solid var(--success);
      }
      .message-content {
        font-size: 16px;
        padding-bottom: 10px;
      }
      .message-form {
        text-align: right;
        .time {
          font-size: 12px;
          margin-right: 10px;
          color: var(--tipColor);
        }
      }
    }
  }

  .load-more {
    margin-top: 0;
  }
}
